﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Ser_GoodsCollection : List<Ser_Goods>
    { 
         public int IndexOf(Ser_Goods item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Ser_Goods item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Ser_Goods this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Ser_Goods item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Ser_Goods item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Ser_Goods[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Ser_Goods item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Ser_Goods> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Ser_Goods
    {
        private int _IdGoodsType;

        public int IdGoodsType
        {
            get { return _IdGoodsType; }
            set { _IdGoodsType = value; }
        }
        private int _Idwarehouse;

        public int Idwarehouse
        {
            get { return _Idwarehouse; }
            set { _Idwarehouse = value; }
        }
        private int _IdGoods;

        public int IdGoods
        {
            get { return _IdGoods; }
            set { _IdGoods = value; }
        }
        private string _GoodsCode;

        public string GoodsCode
        {
            get { return _GoodsCode; }
            set { _GoodsCode = value; }
        }
        private string _GoodsName;

        public string GoodsName
        {
            get { return _GoodsName; }
            set { _GoodsName = value; }
        }
        private double _Price;

        public double Price
        {
            get { return _Price; }
            set { _Price = value; }
        }
        private string _Unit;

        public string Unit
        {
            get { return _Unit; }
            set { _Unit = value; }
        }
        private string _Description;

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
        private int _FirstNum;

        public int FirstNum
        {
            get { return _FirstNum; }
            set { _FirstNum = value; }
        }
        private Boolean _IsUse;

        public Boolean IsUse
        {
            get { return _IsUse; }
            set { _IsUse = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
    }
}
